{if $add_list}
{foreach $add_list as $k=>$v}
<tr {if $v.stock < 1}class="disabled"{elseif $v.is_gift == 1}class="js_isGift"{/if} data-sku_id="{$v.sku_id}" data-stock="{$v.stock}" data-is_promotion="{$v.is_promotion}" data-goods_id="{$v.goods_id}" {if $v.is_gift > 0}data-gift_ids="{join(',', $v.gift_ids)}," data-gift_num="{join(',', $v.gift_num)},"{/if}>
{$property_list = goods_helper::get_sku_property_list($v.sku_id)}
  <td class="clearfix">
    <span class="product-img js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}"><img src="{_image($v.goods_cover, 'middle')}" width="84"></span>
    {if $property_list}
    <div class="intro js_openLink" style="text-align:left;" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}">
      <p class="name">{$v.goods_title}{if $v.is_gift > 0}<i class="ico">赠品</i>{elseif $v.is_promotion > 0}<i class="ico">加购价</i>{/if}</p>
      {foreach $property_list as $p_v}
      <p class="colors">{$p_v.title}：<em>{$p_v.value}</em></p>
      {/foreach}
      {if $v.gift_detail}
      {foreach $v.gift_detail as $g_k=>$g_v}
      <p class="gift" data-gift_num="{$g_v.gift_num}">【赠品】 {$g_v.goods_title} X <em>{$g_v.goods_num}</em></p>
      {/foreach}
      {/if}
      {if $v.goods_notice}
      <p class="price notice"><span>{$v.goods_notice}</span></p>
      {/if}
    </div>
    {else}
    <span class="name js_openLink" data-target="_blank" data-href="{AnUrl("goods/{$v.goods_id}")}">{$v.goods_title}{if $v.is_gift > 0}<i class="ico">赠品</i>{elseif $v.is_promotion > 0}<i class="ico">加购价</i>{/if}
      {if $v.gift_detail}
      {foreach $v.gift_detail as $g_k=>$g_v}
      <p class="gift" data-gift_num="{$g_v.gift_num}">【赠品】 {$g_v.goods_title} X <em>{$g_v.goods_num}</em></p>
      {/foreach}
      {/if}
      {if $v.goods_notice}
      <p class="price notice"><span>{$v.goods_notice}</span></p>
      {/if}
    </span>
    {/if}
  </td>
  <td>{number_format($v.goods_price, 2)}</td>
  <td class="js_goodsNumTD">
    <span class="add-sub clearfix">
      {if $v.is_gift > 0}
      {$v.goods_num}
      {elseif $v.is_promotion > 0}
        1            
      {else}
      <a href="javascript:;" class="sub {if $v.goods_num == 1}sub-disabled{/if} js_goodsNumSub"></a>
      <input type="text" value="{$v.goods_num}" class="txt1 js_cartGoodsNum"/>
      <a href="javascript:;" class="add js_goodsNumAdd"></a>
      {/if}
    </span>
  </td>
  {if $v.stock < 1}
  <td>当前商品武库存</td>
  {else}
  <td class="js_currCount" style="color:rgb(199, 7, 13)">{if $v.is_gift > 0}0.00{else}{number_format($v.goods_price*$v.goods_num, 2)}{/if}</td>
  {/if}
  <td>{if $v.is_gift == 0}<a href="javascript:;" class="del js_cartDelete"></a>{/if}</td>
</tr>
{/foreach}
{/if}